package com.xiaoyang.feign.hystrix;

import com.xiaoyang.domain.Order;
import com.xiaoyang.feign.UserOrderFeign;
import org.springframework.stereotype.Component;

/**
 * @auther XiaoYang
 * @DATE 2023/5/5-17:59
 */
@Component
public class UserOrderFeignHystrix implements UserOrderFeign {

    /**
     * 一般远程调用的熔断可以返回null
     * @param userId userId
     * @return null
     */
    @Override
    public Order getOrderByUserId(Integer userId) {
        System.out.println();
        return null;
    }
}
